package com.datatest.riskcheck.service.api;

import com.datatest.config.FeignConfig;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author lxt
 * Created by Jccfc on 2021/11/1.
 */
//@FeignClient(name = "cenarius-client",url = "https://cenarius-dev.corp.jccfc.com",configuration = FeignConfig.class)
public interface CenariusFeign {

    /**
     * 通过fegin调用三方数据平台获取cookie
     * @param accessKey
     * @return
     */
    @RequestMapping(value = "/login_in/",method = RequestMethod.POST,headers = {"Content-Type=application/x-www-form-urlencoded; charset=UTF-8;"})
    Response login(@RequestBody String accessKey);
}
